import { axios } from '@/utils/request'

const api = {
  getSubscribeList:'/subscribe/list',
  auditStatus:'/subscribe/audit-status',
  getShareUser: '/share/list',
  moneySetting: '/share/money-setting',
  basicSetting: '/share/basic-setting',
  getSetting: '/share/get-share-setting',
  setSellerComments: '/share/seller-comments',
  shareStatus: '/share/status',
  delShareUser: '/share/del',
  getCashList: '/share/cash',
  cashApply: '/share/apply',
  cashConfirm: '/share/confirm',
  orderList: '/share/order',
  getQrcode: '/share/get-qrcode',
  qrcode: '/share/qrcode',
  getQrcodeSetting: '/share/get-qrcode-setting',
  getDetail: '/share/detail',
  getOrder: '/share/share-order',
  getCash: 'share/user-cash',
  detailSetComments: 'share/set-share-seller',
  addShare: 'share/add-share',
  addAddressMeal: '/subscribe/address-meal',
  getAddressMeal: '/subscribe/address-meal-list',
  editAddressMeal: '/subscribe/edit-address-meal',
  delAddressMeal: '/subscribe/del-address-meal',
  cardList: '/subscribe/card-list',
  activeList: '/subscribe/active-list',
  integralList: '/subscribe/integral-list',
  teamAwardList: '/subscribe/team-award-list',
  selfAwardList: '/subscribe/self-award-list',
  rechargeList: '/subscribe/recharge-list',
  setRechargeAudit:'/subscribe/recharge-audit-status',
  setting: '/subscribe/setting',
  settingInfo: '/subscribe/setting-info',
  getFace: '/subscribe/get-face-list',
  createFace: '/subscribe/add-face',
  editFace: '/subscribe/add-face',
  delFace: '/subscribe/del-face',
  telephoneInfo:'/subscribe/telephone-info',
  updateCard:'/subscribe/update-card',
  handtca:'/subscribe/handtca',

  
}

export default api

export function handtc (parameter) {
  return axios({
    url: api.handtca,
    method: 'post',
    data: parameter
  })
}

export function updateLevelInfo (parameter) {
  return axios({
    url: api.updateCard,
    method: 'post',
    data: parameter
  })
}


export function getFace (parameter) {
  return axios({
    url: api.getFace,
    method: 'get',
    params: parameter
  })
}
export function createFace (parameter) {
  return axios({
    url: api.createFace,
    method: 'post',
    data: parameter
  })
}
export function editFace (parameter) {
  return axios({
    url: api.editFace,
    method: 'post',
    data: parameter
  })
}
export function delFace (parameter) {
  return axios({
    url: api.delFace,
    method: 'get',
    params: parameter
  })
}


export function setting(parameter) {
  return axios({
    url: api.setting,
    method: 'post',
    data: parameter,
  })
}
export function settingInfo(parameter) {
  return axios({
    url: api.settingInfo,
    method: 'get',
    params: parameter,
  })
}

export function subscribeList(parameter) {
  return axios({
    url: api.getSubscribeList,
    method: 'get',
    params: parameter,
  })
}


export function shareUserList(parameter) {
  return axios({
    url: api.getShareUser,
    method: 'get',
    params: parameter,
  })
}

export function setMoneySetting(parameter) {
  return axios({
    url: api.moneySetting,
    method: 'post',
    data: parameter,
  })
}

export function getShareSetting(parameter) {
  return axios({
    url: api.getSetting,
    method: 'get',
    params: parameter,
  })
}

export function setBasicSetting(parameter) {
  return axios({
    url: api.basicSetting,
    method: 'post',
    data: parameter,
  })
}

export function setComments(parameter) {
  return axios({
    url: api.setSellerComments,
    method: 'post',
    data: parameter,
  })
}

export function setAudit(parameter) {
  return axios({
    url: api.auditStatus,
    method: 'post',
    data: parameter,
  })
}

export function setRechargeAudit(parameter) {
  return axios({
    url: api.setRechargeAudit,
    method: 'post',
    data: parameter,
  })
}


export function setDel(parameter) {
  return axios({
    url: api.delShareUser,
    method: 'post',
    data: parameter,
  })
}

export function cashList(parameter) {
  return axios({
    url: api.getCashList,
    method: 'get',
    params: parameter,
  })
}

export function applyAudit(parameter) {
  return axios({
    url: api.cashApply,
    method: 'post',
    data: parameter,
  })
}

export function applyConfirm(parameter) {
  return axios({
    url: api.cashConfirm,
    method: 'post',
    data: parameter,
  })
}

export function getOrderList(parameter) {
  return axios({
    url: api.orderList,
    method: 'get',
    params: parameter,
  })
}

export function getQrcode(parameter) {
  return axios({
    url: api.getQrcode,
    method: 'get',
    params: parameter,
  })
}

export function qrcode(parameter) {
  return axios({
    url: api.qrcode,
    method: 'post',
    data: parameter,
  })
}

export function getQrcodeSetting(parameter) {
  return axios({
    url: api.getQrcodeSetting,
    method: 'get',
    params: parameter,
  })
}

export function getDetail(parameter) {
  return axios({
    url: api.getDetail,
    method: 'post',
    data: parameter,
  })
}

export function getOrder(parameter) {
  return axios({
    url: api.getOrder,
    method: 'get',
    params: parameter,
  })
}

export function getCash(parameter) {
  return axios({
    url: api.getCash,
    method: 'get',
    params: parameter,
  })
}

export function detailSetComments(parameter) {
  return axios({
    url: api.detailSetComments,
    method: 'post',
    data: parameter,
  })
}

export function addShare(parameter) {
  return axios({
    url: api.addShare,
    method: 'post',
    data: parameter,
  })
}

export function shareLevelList(params) {
  return axios({
    url: '/share-level/share-level-list',
    method: 'get',
    params,
  })
}

export function shareLevelStatus(data) {
  return axios({
    url: '/share-level/share-level-status',
    method: 'post',
    data,
  })
}

export function shareLevelSave(data) {
  return axios({
    url: '/share-level/share-level-save',
    method: 'post',
    data,
  })
}

export function setShareLevel(data) {
  return axios({
    url: '/share/set-share-level',
    method: 'post',
    data,
  })
}

export function getAddressMeal (params) {
  return axios({
    url: api.getAddressMeal,
    method: 'get',
    params
  })
}

export function createAddress (parameter) {
  return axios({
    url: api.addAddressMeal,
    method: 'post',
    data: parameter
  })
}

export function editAddressMeal (parameter) {
  return axios({
    url: api.editAddressMeal,
    method: 'post',
    data: parameter
  })
}
export function delAddressMeal (parameter) {
  return axios({
    url: api.delAddressMeal,
    method: 'get',
    params: parameter
  })
}

export function cardList (parameter) {
  return axios({
    url: api.cardList,
    method: 'get',
    params: parameter
  })
}

export function activeList (parameter) {
  return axios({
    url: api.activeList,
    method: 'get',
    params: parameter
  })
}

export function telephoneInfo (parameter) {
  return axios({
    url: api.telephoneInfo,
    method: 'get',
    params: parameter
  })
}

export function integralList (parameter) {
  return axios({
    url: api.integralList,
    method: 'get',
    params: parameter
  })
}
export function teamAwardList (parameter) {
  return axios({
    url: api.teamAwardList,
    method: 'get',
    params: parameter
  })
}

export function selfAwardList (parameter) {
  return axios({
    url: api.selfAwardList,
    method: 'get',
    params: parameter
  })
}



export function rechargeList (parameter) {
  return axios({
    url: api.rechargeList,
    method: 'get',
    params: parameter
  })
}

